package com.itlxd.service;

import com.itlxd.entity.DishFlavor;

import java.util.List;

/**
 * <p>
 * 菜品口味关系表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-12-25
 */
public interface IDishFlavorService {

    /**
     * 批量保存口味
     * @param flavors
     * @return
     */
    Integer insertBatch(List<DishFlavor> flavors);

    /**
     * 通过菜品id查询口味
     * @param dishId
     * @return
     */
    List<DishFlavor> getByDishId(Long dishId);

    /**
     * 更新口味
     * @param dishFlavor
     * @return
     */
    Integer updateById(DishFlavor dishFlavor);

    /**
     * 通过dishId数组批量删除多个菜品口味
     * @param dishIds
     * @return
     */
    Integer deleteBatchByDishId(Long[] dishIds);

    /**
     * 插入单条口味
     * @param dishFlavor
     * @return
     */
    Integer insertFlavor(DishFlavor dishFlavor);

}
